package ui.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;

import net.ck.hzq.R;

import javax.inject.Inject;

import base.BaseAct;
import event.NetErrorEvent;
import ui.activity.profit.biz.ProfitBiz;
import ui.activity.profit.contract.ProfitContract;
import ui.activity.profit.presenter.ProfitPresenter;
import ui.model.ProfitBean;
import ui.model.ProfitNewBean;


/**
 * 登录界面
 * Created by chenjian on 2017/8/4.
 */

public class ModleAct extends BaseAct implements ProfitContract.View {


    @Inject
    ProfitPresenter presenter;
    @Inject
    ProfitBiz biz;


    @Override
    protected void setRoot() {
        setTitleBar(R.color.colorBlue);
        setContentView(R.layout.activity_login);
    }

    @Override
    protected void setup() {
//        DaggerProfitComponent.builder().profitModule(new ProfitModule(this)).build().inject(this);
        setToolBar(getResources().getString(R.string.lang_day_profit), "");
        presenter.setBiz(biz);
    }


    @Override
    protected void init(@Nullable Bundle savedInstanceState) {
//        CommonViewUtil.setDarw(right, this, R.mipmap.back, -1,
//                -1, -1);
    }

    @Override
    public void onNetErrorEvent(NetErrorEvent event) {
        super.onNetErrorEvent(event);
    }

    @Override
    protected void onNetError(NetErrorEvent event) {

    }

    @Override
    protected void onStop() {
        super.onStop();
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        biz.onDestory();
    }

    @Override
    public void upDateUI(ProfitBean bean) {

    }

    @Override
    public void upDateTopUI(ProfitNewBean bean) {

    }

}
